l = mPos.X - GetSystemMetrics(32) - Target.Parent.Left / Screen.TwipsPerPixelX
Else
t = mPos.Y
l = mPos.X
End If
FloatingToolbar.Move l * Screen.TwipsPerPixelX, t * Screen.TwipsPerPixelY, tRect.right * Screen.TwipsPerPixelX, tRect.bottom * Screen.TwipsPerPixelY
ChangeBar = True
FloatingToolbar.Show
'vbQHCalcToolPos FloatingToolbar ' copy tools and move form
i = True
End If
End If
End If
Loop Until GetKeyState(1) >= 0 ' mouse_up
End If
End If
End Function
Private Sub vbQHTools (nr As Integer)
Select Case nr
Case qhAppExit
Exit Sub
Case qhNoBar
' nop
Case qhNotUsed
' nop
Case qhNoTool
lblstatus.Caption = cReady
Case Else
ToolCalled nr, lblstatus
End Select
End Sub
Sub vbQHUsed (ByVal Flag As Integer)
qHelp = Flag
End Sub
Private Function zisPointInRect (MyPoint As apiPoint, MyRect As apiRect) As Integer
If MyPoint.X > MyRect.left And MyPoint.X < MyRect.right And MyPoint.Y > MyRect.top And MyPoint.Y < MyRect.bottom Then zisPointInRect = True
End Function
Private Function zisPointInRectExt (MyPoint As apiPoint, MyRect As apiRect) As Integer
If MyPoint.X > MyRect.left And MyPoint.X < MyRect.right + MyRect.left And MyPoint.Y > MyRect.top And MyPoint.Y < MyRect.bottom + MyRect.top Then zisPointInRectExt = True
End Function
Private Function zvbGetCursorExt (cPoint As apiPoint) As Integer